.class public Lnet/oauth/OAuth$Parameter;
.super Ljava/lang/Object;
.source "OAuth.java"

# interfaces
.implements Ljava/util/Map$Entry;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lnet/oauth/OAuth;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x9
    name = "Parameter"
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Ljava/lang/Object;",
        "Ljava/util/Map$Entry",
        "<",
        "Ljava/lang/String;",
        "Ljava/lang/String;",
        ">;"
    }
.end annotation


# instance fields
.field private final key:Ljava/lang/String;

.field private value:Ljava/lang/String;


# direct methods
.method public constructor <init>(Ljava/lang/String;Ljava/lang/String;)V
    .locals 0
    .parameter "key"
    .parameter "value"

    .prologue
    .line 290
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 291
    iput-object p1, p0, Lnet/oauth/OAuth$Parameter;->key:Ljava/lang/String;

    .line 292
    iput-object p2, p0, Lnet/oauth/OAuth$Parameter;->value:Ljava/lang/String;

    .line 293
    return-void
.end method


# virtual methods
.method public equals(Ljava/lang/Object;)Z
    .locals 5
    .parameter "obj"

    .prologue
    const/4 v1, 0x1

    const/4 v2, 0x0

    .line 333
    if-ne p0, p1, :cond_1

    .line 350
    :cond_0
    :goto_0
    return v1

    .line 335
    :cond_1
    if-nez p1, :cond_2

    move v1, v2

    .line 336
    goto :goto_0

    .line 337
    :cond_2
    invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v3

    invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v4

    if-eq v3, v4, :cond_3

    move v1, v2

    .line 338
    goto :goto_0

    :cond_3
    move-object v0, p1

    .line 339
    check-cast v0, Lnet/oauth/OAuth$Parameter;

    .line 340
    .local v0, that:Lnet/oauth/OAuth$Parameter;
    iget-object v3, p0, Lnet/oauth/OAuth$Parameter;->key:Ljava/lang/String;

    if-nez v3, :cond_4

    .line 341
    iget-object v3, v0, Lnet/oauth/OAuth$Parameter;->key:Ljava/lang/String;

    if-eqz v3, :cond_5

    move v1, v2

    .line 342
    goto :goto_0

    .line 343
    :cond_4
    iget-object v3, p0, Lnet/oauth/OAuth$Parameter;->key:Ljava/lang/String;

    iget-object v4, v0, Lnet/oauth/OAuth$Parameter;->key:Ljava/lang/String;

    invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-nez v3, :cond_5

    move v1, v2

    .line 344
    goto :goto_0

    .line 345
    :cond_5
    iget-object v3, p0, Lnet/oauth/OAuth$Parameter;->value:Ljava/lang/String;

    if-nez v3, :cond_6

    .line 346
    iget-object v3, v0, Lnet/oauth/OAuth$Parameter;->value:Ljava/lang/String;

    if-eqz v3, :cond_0

    move v1, v2

    .line 347
    goto :goto_0

    .line 348
    :cond_6
    iget-object v3, p0, Lnet/oauth/OAuth$Parameter;->value:Ljava/lang/String;

    iget-object v4, v0, Lnet/oauth/OAuth$Parameter;->value:Ljava/lang/String;

    invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-nez v3, :cond_0

    move v1, v2

    .line 349
    goto :goto_0
.end method

.method public bridge synthetic getKey()Ljava/lang/Object;
    .locals 1

    .prologue
    .line 288
    invoke-virtual {p0}, Lnet/oauth/OAuth$Parameter;->getKey()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public getKey()Ljava/lang/String;
    .locals 1

    .prologue
    .line 300
    iget-object v0, p0, Lnet/oauth/OAuth$Parameter;->key:Ljava/lang/String;

    return-object v0
.end method

.method public bridge synthetic getValue()Ljava/lang/Object;
    .locals 1

    .prologue
    .line 288
    invoke-virtual {p0}, Lnet/oauth/OAuth$Parameter;->getValue()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public getValue()Ljava/lang/String;
    .locals 1

    .prologue
    .line 304
    iget-object v0, p0, Lnet/oauth/OAuth$Parameter;->value:Ljava/lang/String;

    return-object v0
.end method

.method public hashCode()I
    .locals 5

    .prologue
    const/4 v3, 0x0

    .line 323
    const/16 v0, 0x1f

    .line 324
    .local v0, prime:I
    const/4 v1, 0x1

    .line 325
    .local v1, result:I
    iget-object v2, p0, Lnet/oauth/OAuth$Parameter;->key:Ljava/lang/String;

    if-nez v2, :cond_0

    move v2, v3

    :goto_0
    add-int/lit8 v1, v2, 0x1f

    .line 326
    mul-int/lit8 v2, v1, 0x1f

    iget-object v4, p0, Lnet/oauth/OAuth$Parameter;->value:Ljava/lang/String;

    if-nez v4, :cond_1

    :goto_1
    add-int v1, v2, v3

    .line 327
    return v1

    .line 325
    :cond_0
    iget-object v2, p0, Lnet/oauth/OAuth$Parameter;->key:Ljava/lang/String;

    invoke-virtual {v2}, Ljava/lang/String;->hashCode()I

    move-result v2

    goto :goto_0

    .line 326
    :cond_1
    iget-object v3, p0, Lnet/oauth/OAuth$Parameter;->value:Ljava/lang/String;

    invoke-virtual {v3}, Ljava/lang/String;->hashCode()I

    move-result v3

    goto :goto_1
.end method

.method public bridge synthetic setValue(Ljava/lang/Object;)Ljava/lang/Object;
    .locals 1
    .parameter "x0"

    .prologue
    .line 288
    check-cast p1, Ljava/lang/String;

    .end local p1
    invoke-virtual {p0, p1}, Lnet/oauth/OAuth$Parameter;->setValue(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public setValue(Ljava/lang/String;)Ljava/lang/String;
    .locals 1
    .parameter "value"

    .prologue
    .line 309
    :try_start_0
    iget-object v0, p0, Lnet/oauth/OAuth$Parameter;->value:Ljava/lang/String;
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 311
    iput-object p1, p0, Lnet/oauth/OAuth$Parameter;->value:Ljava/lang/String;

    return-object v0

    :catchall_0
    move-exception v0

    iput-object p1, p0, Lnet/oauth/OAuth$Parameter;->value:Ljava/lang/String;

    throw v0
.end method

.method public toString()Ljava/lang/String;
    .locals 2

    .prologue
    .line 317
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {p0}, Lnet/oauth/OAuth$Parameter;->getKey()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Lnet/oauth/OAuth;->percentEncode(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const/16 v1, 0x3d

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {p0}, Lnet/oauth/OAuth$Parameter;->getValue()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Lnet/oauth/OAuth;->percentEncode(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method
